﻿using System;
using App.Entity;
using System.Collections.Generic;
using App.Code;

/*!
* 文件描述：一切从简，只为了更懒！
*/
namespace App.IServices
{
	public partial interface ISys_UserServices : IBaseServices<Sys_User>
	{

        List<Sys_User> GetList(Pagination pagination, string keyword);

        Sys_User GetForm(string keyValue);

        /// <summary>
        /// 根据用户名获取用户信息
        /// </summary>
        /// <param name="userName"></param>
        /// <returns></returns>
        Sys_User GetUser(string userName);

        void DeleteForm(string keyValue);

        void SubmitForm(Sys_User userEntity, Sys_UserLogOn userLogOnEntity, string keyValue);

        void UpdateForm(Sys_User userEntity);

        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="username">用户名</param>
        /// <param name="password">密码</param>
        /// <returns></returns>
        Sys_User CheckLogin(string username, string password);
    }
}